package com.sxkiler.demo.rpc.pojo;

import java.io.Serializable;
/**
 * 消息体，发送消息和接收的就是它
 */
public class MessageContext implements Serializable {
    private String messageId;
    private Boolean isSuccess;
    private Object context;//具体的消息内容。分为请求数据和返回数据两种？

    public MessageContext() {
    }

    public MessageContext(String messageId, Boolean isSuccess, Object context) {
        this.messageId = messageId;
        this.isSuccess = isSuccess;
        this.context = context;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public Boolean getSuccess() {
        return isSuccess;
    }

    public void setSuccess(Boolean success) {
        isSuccess = success;
    }

    public Object getContext() {
        return context;
    }

    public void setContext(Object context) {
        this.context = context;
    }
}

